@import url('https://fonts.googleapis.com/css2?family=K2D:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Roboto+Condensed:ital,wght@0,496;1,496&display=swap');

#filters {
    background-color: #f1f1f1;
    padding: 30px 25px;
    /* margin-left: 40px; */
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.432);

    /* let height be determined by content; scrolling is enabled only on wide screens */
    height: auto;
}

form h2 {
    padding-left: 10px;
    border-left: solid 6px;
    border-color: #104C3B;

    font-family: "K2D", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2em;
}

form label {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 1px;

    font-size: 1.25em;
}

.form-label {
    margin-bottom: 0px;
}

.form-control,
.form-select {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1px;

    border: solid 1px;
    border-color: #1a1a1a;
    background-color: #d9d9d9;
    color: #1a1a1a;

    font-size: 1.25em;

    border-radius: 0px;
}

/* Style disabled placeholder/options so they appear greyed out */
.form-select option:disabled,
.form-control option:disabled {
    color: #777777;
}

#ord {
    width: 15%;
}

.form-range {
    color: #005f4f;
}

/* On small screens (below 1200px) the filters are collapsible and should not scroll */
@media (max-width: 1199.98px) {
    #filters {
        /* disable the independent scrolling on small screens */
        max-height: none;
        overflow: visible;
        padding-right: 25px;
        /* keep some spacing when collapsed content expands */
    }
}

#result {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 1px;

    font-size: 1.25em;
}

.justify-content-between {
    margin: 30px 75px;

}

.box {
    background-color: #eaeaea;
    font-family: "K2D", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2em;

}

/* Make the filters column scroll independently at desktop sizes when it is taller than the viewport */
@media (min-width: 1200px) {
    #filters {
        /* Leave room for a fixed header/nav if present; adjust as needed */
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        padding-right: 10px;
        /* space for scrollbar */
        -webkit-overflow-scrolling: touch;
    }
}


select.form-select {
    text-transform: capitalize;
}

/* Disabled select styling (also used by .disabled-select helper class) */
.form-select:disabled,
.form-select.disabled-select {
    color: #777777;
    cursor: not-allowed;
    opacity: 1;
    /* keep contrast */
}

/* Scrollbar styling for modern browsers */
#filters {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #005f4f transparent;
}

/* WebKit browsers (Chrome, Edge, Safari) */
#filters::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#filters::-webkit-scrollbar-track {
    background: transparent;
}

#filters::-webkit-scrollbar-thumb {
    background-color: #005f4f;
    border-radius: 6px;
    border: 2px solid transparent;
    /* creates padding between thumb and track */
    background-clip: padding-box;
}

/* Remove arrow buttons in WebKit (if present) */
#filters::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* For completeness, hide the corner if both scrollbars appear */
#filters::-webkit-scrollbar-corner {
    background: transparent;
}

/* Styles for dual-range slider visuals */
.range-pair {
    --range-from: 0%;
    --range-to: 100%;
}

.range-pair .range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.range-slider {
    position: relative;
    height: 28px;
}

.range-slider input[type="range"] {
    pointer-events: none;
    /* allow clicks to pass to upper slider */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.range-slider input[type="range"].range-min {
    z-index: 1;
    pointer-events: auto;
}

.range-slider input[type="range"].range-max {
    z-index: 2;
    pointer-events: auto;
}

/* track */
.range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(90deg, transparent var(--range-from), #005f4f var(--range-from), #005f4f var(--range-to), transparent var(--range-to));
    border-radius: 6px;
}

.range-slider input[type="range"]::-moz-range-track {
    height: 8px;
    background: linear-gradient(90deg, transparent var(--range-from), #005f4f var(--range-from), #005f4f var(--range-to), transparent var(--range-to));
    border-radius: 6px;
}

/* thumb */
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #005f4f;
    /* solid handle matching the bar */
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin-top: -5px;
    /* centers thumb on track */
}

.range-slider input[type="range"]::-webkit-slider-thumb:focus,
.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #005f4f;
    /* solid handle matching the bar */
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.range-slider input[type="range"]::-moz-range-thumb:focus,
.range-slider input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ensure the visual fill is controlled by the wrapper variables */
.range-pair {
    position: relative;
}

.btn {
    margin-top: 25px;
    color: #eaeaea;
    background-color: #005f4f;
    border-radius: 0px;
    font-family: 'K2D', sans-serif;
    font-size: 1.5em;
    border-color: #005f4f;
    font-weight: 400;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #01977e;
    border-color: #01977e;
}

#btn-collapse {
    width: 100%;
    margin: 0px;
}